<?php
    Zalogowany();
    print("<tt>");
    if(!CzyAdmin($_SESSION['user']) && !ereg("/".$_SESSION['user']."_", $_GET['src'])) 
        print("Cos jest zle!!! Czyzbys probowal nas oszukac??<br>\n");
    else {
        $lines = file($rootdir.$_GET['src']);
        if($lines) {
            foreach ($lines as $line_num => $line) {
                $line = htmlspecialchars($line);
                $line=ereg_replace("\n", "<br>\n", $line);
                $line=ereg_replace("  ", "&nbsp ", $line);
                $line=ereg_replace("\t", "&nbsp &nbsp ", $line);
                echo $line;
            }
        }
    }
    print("</tt>");
?>
